{anchor:msg_setstate_0}
!! SetState message
!!! Constructor
!!!! new COSA.Request.SetState(entityMoniker, state, status, requestId)
|| Param || Type || Description ||
| entityMoniker | [COSA.EntityReference|COSA Namespace#lib_entityreference_0] | Entity Moniker |
| state | {{number}} | State |
| status | {{number}} | Status |
| requestId _(optional)_ | {{string}} | Request unique identifier (GUID) |
!!! Instance Properties
|| Name || Type || Description ||
| entityMoniker | [COSA.EntityReference|COSA Namespace#lib_entityreference_0] | Entity Moniker |
| state | {{number}} | State |
| status | {{number}} | Status |
| requestId _(optional)_ | {{string}} | Request unique identifier (GUID) |
!!! Example
{code:javascript}
var setState_0 = new COSA.Request.SetState(new COSA.EntityReference('contact', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'), 1, 2);
//message execution
setState_0.execute(function ( r ) {
	//working with a response
});
//or
COSA.Core.Execute(setState_0, function ( r ) {
	//working with a response
});
{code:javascript}

[Back to Top|#tbl_contents_0]